all: build push clean
.PHONY: build push clean

TAG = v2

build:
		GOOS=linux GOARCH=amd64 go build -o hello${TAG} main.go
		docker build -t registry.cn-beijing.aliyuncs.com/wychuan/helloworld:${TAG} .

push:
		docker push registry.cn-beijing.aliyuncs.com/wychuan/helloworld:${TAG}

clean:
		rm -rf hello${TAG}